home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Sources / Panes / PedPaneIcon.cc < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-24  |  604 b   |  36 lines

  1. /*    ==============
  2.  *    PedPaneIcon.cc
  3.  *    ==============
  4.  */
  5.  
  6. #include "PedestalDebugging.h"
  7.  
  8. #include <Icons.h>
  9.  
  10. #include "PedPaneIcon.hh"
  11.  
  12. #include "PedView.hh"
  13.  
  14. PedPaneIcon::PedPaneIcon(PedView &inSuperView)
  15. : PedPaneImage(inSuperView)
  16. {
  17. }
  18.  
  19. PedPaneIcon::~PedPaneIcon()
  20. {
  21. }
  22.  
  23. void
  24. PedPaneIcon::Draw()
  25. {
  26.     Rect rect;
  27.     //::SetRect(&rect, 0, 0, 128, 128);
  28.     rect = mBounds;
  29.     Point offset;
  30.     mSuperView.GetWindowToLocalOffset(offset);
  31.     ::OffsetRect(&rect, offset.h, offset.v);
  32.     //::EraseRect(&rect);
  33.     //::PlotIconID(&mBounds, atAbsoluteCenter, ttNone, 128);
  34.     ::PlotIconID(&rect, atAbsoluteCenter, ttNone, 128);
  35. }
  36.